package com.example.messangersms;

import java.util.ArrayList;

public class Contact {
	
	private String contactInfo ;
	private ArrayList<Message> listOfMessages = new ArrayList<Message>();
	public Contact (String number, Message mes){
		contactInfo = number;
		listOfMessages.add(mes);
	}

	public ArrayList<Message> getMessages(){
		
		return listOfMessages;
	}
	
	public String getContactInfo()
	{
		return contactInfo;
	}
	
	public void updateContactsMessages(Message bd)
	{
		listOfMessages.add(bd);
	}
}
